home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
gcc
/
libnixV1_0.lha
/
gnu
/
libnix-sources.lha
/
examples
/
makefile
< prev
next >
Wrap
Makefile
|
1995-01-22
|
405b
|
22 lines
# Some examples
.PHONY: all
all: lib libr dev helloworld
# normal library
lib: libinit.o simplelib.c
gcc -nostdlib -O3 -fbaserel $^ -o $@
# multibase library
libr: libinitr.o simplelib.c
gcc -nostdlib -O3 -resident $^ -o $@
# device
dev: devinit.o simpledev.c
gcc -nostdlib -O3 -fbaserel $^ -o $@
# helloworld
helloworld: nbcrt0.o helloworld.c libstubs.a
gcc -nostdlib -O3 -s -fbaserel $^ -o $@